package com.codeplex.boomships.Client;

import com.codeplex.boomships.communication.Command;
import com.codeplex.boomships.communication.Msg;

public class ConsoleWriter {
	
	public void titlePrinter(){
		System.out.println("**************************************");
		System.out.println("************MENU PRINCIPAL************");
		System.out.println("**************************************\n\n");
	}

	public void loginMenuPrinter(){
		System.out.println("1 - Login");
		System.out.println("2 - Registrarse");
	}
	
	public void drawBoard(int[][] board){
		String firstline = "  1   2   3   4   5   6   7   8   9  10  11  12  13  14  15 ";
		String line = "------------------------------------------------------------";
		System.out.println(firstline);
		System.out.println(line);
		if (board != null){
			for(int i=0; i < board.length; i++){
				
			}
		}
	}
	 
	public void writeMessage(Msg<String> message){
		if(message.getCommand().equals(Command.MSG)){
			StringBuilder sb = new StringBuilder();
			sb.append(message.getSender()).append(": ").append(message.getParam());
			System.out.println(sb.toString());
		}
	}
	
	
	public static void main(String[] args){
		
	}
}
